<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>保险优惠政策管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		});
	</script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
	<div class="ibox">
	<div class="ibox-title">
		<h5>保险优惠政策列表 </h5>
	</div>
    <div class="ibox-content">
	<sys:message content="${message}"/>
	
	<!--查询条件-->
	<div class="row">
	<div class="col-sm-12">
	<form:form id="searchForm" modelAttribute="logisBxDiscount" action="${ctx}/logis/logisBxDiscount/" method="post" class="form-inline">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
		<div class="form-group">
			<span>保险名称：</span>
				<form:input path="name" htmlEscape="false" maxlength="32"  class=" form-control input-sm"/>
			<span>优惠名称：</span>
				<form:input path="yhName" htmlEscape="false" maxlength="32"  class=" form-control input-sm"/>
			<div class="pull-right">
				<button  class="btn btn-primary btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
			</div>
		 </div>	
	</form:form>
	<br/>
	</div>
	</div>
	

	<!-- 表格 -->
	<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
		<thead>
			<tr>
				<th  class="sort-column id">id</th>
				<th  class="sort-column name">保险名称</th>
				<th  class="sort-column beValue">保险额度</th>
				<th  class="sort-column bfValue">保费(需支付)</th>
				<th  class="sort-column shzValue">货主支付</th>
				<th  class="sort-column bxcbValue">保险成本</th>
				<th  class="sort-column lrValue">利润</th>
				<th  class="sort-column yhValue">优惠金额</th>
				<th  class="sort-column yhName">优惠名称</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="logisBxDiscount">
			<tr>

				<td>
					${logisBxDiscount.id}
				</td>
				<td>
					${logisBxDiscount.name}
				</td>
				<td>
					${logisBxDiscount.beValue}
				</td>
				<td>
					${logisBxDiscount.bfValue}
				</td>
				<td>
					${logisBxDiscount.bfValue-logisBxDiscount.yhValue}
				</td>
				<td>
					${logisBxDiscount.bxcbValue}
				</td>
				<td>
						${logisBxDiscount.bfValue-logisBxDiscount.yhValue-logisBxDiscount.bxcbValue}
				</td>
				<td>
					${logisBxDiscount.yhValue}
				</td>
				<td>
					${logisBxDiscount.yhName}
				</td>
				<td>

					<shiro:hasPermission name="logis:logisBxDiscount:edit">
    					<a href="#" onclick="openDialog('设置保险优惠政策', '${ctx}/logis/logisBxDiscount/form?id=${logisBxDiscount.id}','400px', '460px')" class="btn btn-success btn-xs" ><i class="fa fa-edit"></i> 设置保险优惠</a>
    				</shiro:hasPermission>

				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	
		<!-- 分页代码 -->
	<table:page page="${page}"></table:page>
	<br/>
	<br/>
	</div>
	</div>
</div>
</body>
</html>